<?php 

namespace app\common\validate\ywUser;

use think\Validate;

class UserMaterial extends Validate 
{ 
    protected $rule = [
        'number' => 'require',
    ];

    protected $message = [
        'number.require' => '请输入数量',
    ];

    protected $scene = [
        'edit' => ['material_name','remark','number','receive_number','order_num','admin_name','id'],
        'add' => ['material_name','remark','number','receive_number','order_num','admin_name'],
    ];

} 
